package org.example.httphandler;

import org.example.httphandler.RedirectRequestHandler;

import java.nio.charset.Charset;

/**
 * @author 胡帅博
 * @date 2021/6/11 15:21
 */
public class test1{
    public static void main(String[] args) {
        // language = HTML5
        //language=HTML
        String html = "<!DOCTYPE html>\n" +
                "<html lang=\"en\">\n" +
                "<head>\n" +
                "    <title>爬虫订阅</title>\n" +
                "    <meta charset=\"UTF-8\">\n" +
                "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n" +
                "    <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n" +
                "    <link rel=\"stylesheet\" href=\"/css/normalize.css\">\n" +
                "    <link rel=\"stylesheet\" href=\"/css/back.css\">\n" +
                "    <link rel=\"stylesheet\" href=\"/css/elementUI.css\">\n" +
                "    <script src=\"/js/routes.js\"></script>\n" +
                "    <script src=\"/js/cookie.min.js\"></script>\n" +
                "    <script src=\"/js/axios.min.js\"></script>\n" +
                "    <script src=\"/js/md5.js\"></script>\n" +
                "    <script src=\"/js/vue.js\"></script>\n" +
                "    <script src=\"/js/elementUI.js\"></script>\n" +
                "    <script src=\"/js/components.js\"></script>\n" +
                "    <script src=\"/js/spidercomponennt.js\"></script>\n" +
                "</head>\n" +
                "<body>\n" +
                "</body>\n" +
                "</html>";
        byte[] bytes = html.getBytes();
        RedirectRequestHandler redirectRequestHandler = new RedirectRequestHandler();
        //      redirectRequestHandler.injectJavaScript(bytes, Charset.forName("utf-8"));


    }
}
